﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;

namespace OpenESSOConfigurator.BusinessLayer.Atoms
{
    [Serializable]
    public class Numeric
    {
        private bool _allow;
        private bool _mustStart;
        private bool _checkMin;
        private int _minValue;
        private bool _checkMax;
        private int _maxValue;


        [XmlAttribute("allow")]
        public bool Allow
        {
            get { return _allow; }
            set { _allow = value; }
        }
        [XmlAttribute("mustStart")]
        public bool MustStart
        {
            get { return _mustStart; }
            set { _mustStart = value; }
        }
        [XmlAttribute("checkMin")]
        public bool CheckMin
        {
            get { return _checkMin; }
            set { _checkMin = value; }
        }
        [XmlAttribute("minValue")]
        public int MinValue
        {
            get { return _minValue; }
            set { _minValue = value; }
        }
        [XmlAttribute("checkMax")]
        public bool CheckMax
        {
            get { return _checkMax; }
            set { _checkMax = value; }
        }
        [XmlAttribute("maxValue")]
        public int MaxValue
        {
            get { return _maxValue; }
            set { _maxValue = value; }
        }
    }
}
